#include "mydialoghead.h"

MyDialogHead::MyDialogHead(QWidget *parent)
	: QDialog(parent)
	, ui(new Ui::MyDialogHeadClass())
{
	ui->setupUi(this);

	model_sl = new QStringListModel(this);
	ui->listView->setModel(model_sl);

}

MyDialogHead::~MyDialogHead()
{
	delete ui;
}

void MyDialogHead::set_header_list(QStringList& headers)
{
	model_sl->setStringList(headers);
}

QStringList MyDialogHead::get_header_list()
{
	return model_sl->stringList();
}
